import service from "./index.js";
const loginApi = {
    getCaptcha(){
        return service.get('/login/captcha')
            .then(resp=>resp.data)
    },
    login(member){
        return service.post('/login',member)
            .then(resp=>resp.data)
    },
    register(member){
        return service.post('/login/register',member)
            .then(resp=>resp.data)
    },
    getMember(){
        return service.get('/login/getMember')
            .then(resp=>resp.data)
    },
}
export default loginApi